<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <p>2</p>
  <p>3</p>
  <p>5</p>
  <script>
    //1.数组
    const s=new Set([1,2,4])
    console.log(s);
    //2.字符串，arguments NodeList set等
    console.log(new Set('hi'));
    function fun(){
      console.log(new Set(arguments));
    }
    fun(1,2,3)
    console.log(new Set(document.querySelectorAll('p')));
    console.log(new Set(s)===s);
  </script>
</body>
</html>